﻿@page
@model CampusNews.Pages.Newwss.EditModel

@{
    ViewData["Title"] = "Edit";
}

<h1>编辑新闻</h1>


<hr />
<div class="row">
    <div class="col-md-4">
        <form method="post">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <input type="hidden" asp-for="Newws.Id" />
            <div class="form-group">
                
                <label asp-for="Newws.Title" class="control-label">标题</label>
                <input asp-for="Newws.Title" class="form-control" />
                <span asp-validation-for="Newws.Title" class="text-danger"></span>
            </div>
            <div class="form-group">
                
                <label asp-for="Newws.ReleaseDate" class="control-label">发布时间</label>
                <input asp-for="Newws.ReleaseDate" class="form-control" />
                <span asp-validation-for="Newws.ReleaseDate" class="text-danger"></span>
            </div>
            <div class="form-group">
                
                <label asp-for="Newws.Genre" class="control-label">新闻类型</label>
                <input asp-for="Newws.Genre" class="form-control" />
                <span asp-validation-for="Newws.Genre" class="text-danger"></span>
            </div>
            <div class="form-group">
                
                <label asp-for="Newws.NewsDetails" class="control-label">新闻详情</label>
                <input asp-for="Newws.NewsDetails" class="form-control" />
                <span asp-validation-for="Newws.NewsDetails" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="保存" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-page="./Index">返回</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
